package cn.edu.scau.cmi.wujiaxian.exercise11;

import java.awt.BorderLayout;

import javax.swing.JFrame;
import javax.swing.JTabbedPane;

public class Example11_4 extends JFrame{
	
	private static final long serialVersionUID = -4955906129648115260L;

	JTabbedPane pane;
	
	public Example11_4() {
		setBounds(100, 100, 500, 300);
		setVisible(true);
		pane = new JTabbedPane(JTabbedPane.LEFT);
		pane.add("Flow", new FlowLayoutPanel());
		pane.add("Grid", new GridLayoutPanel());
		pane.add("Border", new BorderLayoutPanel());
		pane.validate();
		add(pane, BorderLayout.CENTER);
		validate();
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
	}
	
	public static void main(String[] args) {
		new Example11_4();
	}
	
}
